package com.example.scaletest;


public class IoEntity {
    long id;
    String name;
    int position;//位置
    int voltage;//电压
    int flag;//1是输入，2是输出
    long delayTime;//延迟时间
    public IoEntity(Long id, String name, int position, int voltage, int flag,
                    long delayTime) {
        this.id = id;
        this.name = name;
        this.position = position;
        this.voltage = voltage;
        this.flag = flag;
        this.delayTime = delayTime;
    }

    public IoEntity() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public int getVoltage() {
        return voltage;
    }

    public void setVoltage(int voltage) {
        this.voltage = voltage;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public long getDelayTime() {
        return delayTime;
    }

    public void setDelayTime(long delayTime) {
        this.delayTime = delayTime;
    }
}
